using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class Tool
{
    public static string TimeFormat(int sec)
    {
        string h = (sec / 3600).ToString();
        string m = (sec % 3600 / 60).ToString();
        string s = (sec % 60).ToString();
        string time = (h.Length < 2 ? ("0" + h) : h) + ":" +
                      (m.Length < 2 ? ("0" + m) : m) + ":" +
                      (s.Length < 2 ? ("0" + s) : s);
        return time;
    }
}
